package designpatterns.singleton;

/**
 * @author 真香
 * @create 2021-05-27 20:52
 *
 *  饿汉
 */
public class Hungry {

    private byte[] data1 = new byte[1024*1024];

    private byte[] data2 = new byte[1024*1024];

    private byte[] data3 = new byte[1024*1024];

    private byte[] data4 = new byte[1024*1024];

    private Hungry(){

    }



    private  final static  Hungry hungry = new Hungry();

    public static Hungry getInstance(){

        return hungry;
    }

}
